package com.lcq.study.javabase;

public class Test {
    public static void main(String[] args) {
        //stringReplaceTest();
        Company company = new Company();
        company.setEmpCount(0);
        company.setName("hello");
        for (int i = 0; i< 10; i++){
            Integer empCount = company.getEmpCount();
            company.setEmpCount(++empCount);
        }
        System.out.println(company);
    }

    private static void stringReplaceTest() {
        //System.out.println(DateFormatUtils.format(new Date(), "yyyy"));
        String example = "{\"FirstPoint\":{\"x\":18871.623831889414,\"y\":33644.207360458262,\"z\":0.0},\"SecondPoint\":{\"x\":21832.366873842846,\"y\":31667.795120410814,\"z\":0.0},\"TextPoint\":{\"x\":21871.120055020248,\"y\":31683.296392881777,\"z\":0.0},\"Text\":\"\",\"TextHeight\":1.0,\"PenWidth\":0.0}|{\"FirstPoint\":{\"x\":17918.295574925352,\"y\":35023.820610373739,\"z\":0.0},\"SecondPoint\":{\"x\":21429.333789597877,\"y\":32194.838384423467,\"z\":0.0},\"TextPoint\":{\"x\":23576.26002682589,\"y\":33969.734082348434,\"z\":0.0},\"Text\":\"\",\"TextHeight\":1.0,\"PenWidth\":0.0}|{\"FirstPoint\":{\"x\":17344.748493499817,\"y\":35589.617055563795,\"z\":0.0},\"SecondPoint\":{\"x\":20530.259986282173,\"y\":32404.105562781435,\"z\":0.0},\"TextPoint\":{\"x\":16747.949503367843,\"y\":32039.825659713864,\"z\":0.0},\"Text\":\"\",\"TextHeight\":1.0,\"PenWidth\":0.0}|{\"FirstPoint\":{\"x\":15910.880789935982,\"y\":35736.879144037914,\"z\":0.0},\"SecondPoint\":{\"x\":23460.000483293687,\"y\":30768.721317095115,\"z\":0.0},\"TextPoint\":{\"x\":22243.1505943233,\"y\":31598.039394291492,\"z\":0.0},\"Text\":\"\",\"TextHeight\":1.0,\"PenWidth\":0.0}";
        System.out.println("[" + example.replaceAll("\\|", ",") + "]");
    }
}
